package com.lanchetech.dao;
import org.apache.ibatis.annotations.Param;

import com.lanchetech.entity.BossRelationship;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BossRelationshipMapper {
    int deleteByPrimaryKey(Long id);

    int insert(BossRelationship record);

    int insertSelective(BossRelationship record);

    BossRelationship selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BossRelationship record);

    int updateByPrimaryKey(BossRelationship record);

    BossRelationship findOneBySuperiorIdAndSubordinateId(@Param("superiorId")Long superiorId,@Param("subordinateId")Long subordinateId);

    BossRelationship findOneBySubordinateId(@Param("subordinateId")Long subordinateId);



}